#include "problems/3.h"
#include "gtest/gtest.h"

TEST(TestProblemSolutions, TestProblem3)
{
    problem_3::Solution s;
    ASSERT_EQ(s.lengthOfLongestSubstring("abcabcbb"), 3);
    ASSERT_EQ(s.lengthOfLongestSubstring("bbbbb"), 1);
    ASSERT_EQ(s.lengthOfLongestSubstring("pwwkew"), 3);
    ASSERT_EQ(s.lengthOfLongestSubstring(""), 0);
}